import QtQuick 1.1
import com.nokia.meego 1.0

Rectangle {
    id: sectionHeader
    width: parent.width
    height: childrenRect.height
    color: theme.inverted ? "#000000" : "#ffffff"
    property string sectionText: ""
    Rectangle {
        width: parent.width - sectionLabel.implicitWidth - 10;
        height: 2
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.topMargin: sectionLabel.height / 2
        color: theme.inverted ? "#969696" : "#a3a3a3"
    }
    Label {
        id: sectionLabel
        anchors.topMargin: 2
        anchors.bottomMargin: 2
        text: sectionText
        font.bold: true
        font.pointSize: 16
        color: theme.inverted ? "#969696" : "#a3a3a3"
        width: parent.width
        horizontalAlignment: Text.AlignRight
    }
}
